<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
        <script>
            var a=true;
            console.log(parseInt('123a'));
            console.log(Number('a'));
            console.log(+a)
        </script>
</body>
</html>